package com.xyoto.community.enums;

import io.swagger.annotations.ApiModel;

/**
 * @author coderFu
 * @create 2021/10/2
 */
@ApiModel("用户的枚举类")
public enum UserEnum implements Code {

    USER_CREATE_FAIL(2160,"用户创建失败"),
    USER_WX_MESSAGE_UPDATE_FAIL(2161,"用户信息更新失败"),
    USER_NOT_EXIST(2162,"该用户不存在"),
    SIGNATURE_TOO_LONG(2163,"个性签名超过最大长度（50）"),
    USER_INFO_NOT_EXIST(2164, "用户信息不存在"),
    BIRTH_FORMAT_ERROR(2165, "日期格式错误，正确格式yyyy-MM-dd"),
    BIRTH_TOO_LATE(2166, "生日超过当前时间"),
    BIRTH_MONTH_NOT_IN_RANGE(2167, "生日月份不在规定的范围"),
    BIRTH_DAY_NOT_IN_RANGE(2168, "日不在规定的范围"),
    YOU_NOT_FOLLOW_USER(2169, "你未曾关注过用户哦!"),
    ANONY_DATA_NOT_EXIST(2171, "匿名数据不存在"),
    HOMETOWN_IS_NULL(2172, "家乡信息不能为空"),
    PRIVATE_LETTER_SAVE_ERROR(2173, "私信保存失败"),
    GENDER_IS_ILLEGAL(2174, "性别错误，1男性，2女性"),
    PRIVATE_LETTER_SAVE_CONTACT_ERROR(2175,"用户私信联系创建失败"),
    PRIVATE_LETTER_UPDATE_CONTACT_ERROR(2176,"更新用户私信联系失败"),
    PRIVATE_LETTER_IS_NULL(2177,"用户私信信息不存在"),
    PRIVATE_LETTER_READ_IS_NULL(2178,"用户未读数不存在"),
    USER_NAME_TOO_LONG(2179,"用户名长度过长"),
    USER_SIGNATURE_TOO_LONG(2180,"用户个性签名过长"),
    USER_NICKNAME_CAN_NOT_BE_NULL(2181,"用户昵称不能为空"),
    PRIVATE_LETTER_LIST_IS_NULL(2182,"私信列表不存在"),
    PRIVATE_LETTER_LIST_REMOVE_ERROR(2183,"删除私信列表失败"),
    PRIVATE_LETTER_LIST_USER_ERROR(2184,"此私信列表不是该用户"),
    TITLE_SAVE_ERROR(2185,"头衔保存失败"),
    TITLE_NOT_EXIST(2186,"头衔不存在"),
    TITLE_REMOVE_ERROR(2187,"头衔删除失败"),
    USER_TITLE_SAVE_ERROR(2188,"用户新增头衔失败"),
    USER_NICKNAME_REPEAT(2189,"用户名已存在"),
    ;


    private int code;
    private String msg;
    UserEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }
    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
